<?php

namespace App\Models\V1;

use Illuminate\Database\Eloquent\Factories\HasFactory;

class Goods extends BaseModel
{
    use HasFactory;
    protected $table="goods";
    protected $fillable=[
        'title',
        'thumb',
        'community_id',
        'community_name',
        'particulars',
        'integral',
        'c_num',
        'state',
    ];

    /**
     * 状态
     * @param $key
     * @return string
     */
    public function getStateAttribute($key)
    {
        return (string) $key;
    }

}
